<form data-toggle="ajaxform" action="/admin/order-type/process-add" data-options="{callback:'after_add_process'}">

    @foreach ($processTypeList as $val)
        <div class="bjui-row">
            <div class="row-input">{{$val['title']}}</div><br/>
        </div>
        @if (!empty($val['data']))
            <div class="bjui-row col-2">
                @foreach ($val['data'] as $v)
                    <div class="row-input">
                        <input type="checkbox" name="process[]" id="process_checkbox{{$v['id']}}" value="{{$v['id']}}" data-toggle="icheck" data-label="{{$v['title']}}">
                    </div>
                @endforeach
            </div>
        @endif
    @endforeach

    <div class="btn-group">
        <input type="hidden" name="orderTypeId" value="{{$orderTypeId}}">
        <button type="submit" class="btn-green" data-icon="search">保存</button>
    </div>
</form>
<script>
    function after_add_process(){
        BJUI.dialog('closeCurrent')
        BJUI.navtab('refresh')
    }
</script>